-
Notifications
You must be signed in to change notification settings - Fork 7
fix: header theme changes in embedded sample #510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| if (caseTypes && caseTypes.length > 0) { | ||
| //mashupCaseType = caseTypes[0].pyWorkTypeImplementationClassName; | ||
| mashupCaseType = 'DIXL-MediaCo-Work-PurchasePhone'; | ||
| mashupCaseType = sdkConfigData.authConfig.mashupCaseType; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to modify this logic, it should be like below one
if (caseTypes && caseTypes.length > 0) {
mashupCaseType = caseTypes[0].pyWorkTypeImplementationClassName;
}
sdk-config.json
Outdated
| "sdk_optional_configs_doc_comment": "See the document(link below) for more details on all the available config settings", | ||
| "sdk_optional_configs_doc": "https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/configuring-sdk-config-json.html", | ||
| "theme": "light", | ||
| "theme": "dark", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep light as default theme
sdk-config.json
Outdated
| "portalClientId": "25795373220702300272", | ||
| "mashupCaseType": "DIXL-MediaCo-Work-PurchasePhone" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need of new key 'mashupCaseType', appMashupCaseType is already present below
| import StoreContext from '../../../bridge/Context/StoreContext'; | ||
| import createPConnectComponent from '../../../bridge/react_pconnect'; | ||
|
|
||
| import sdkConfigData from '../../../../../../sdk-config.json'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this import
tsconfig.json
Outdated
| "allowJs": true, // must be false for @pega/pcore-pconnect-typedefs | ||
| "noImplicitAny": false, | ||
| "allowSyntheticDefaultImports": true, | ||
| "resolveJsonModule": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this too
Updated the header component style
case type added in the sdk config